<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<div class="t_bar">
	<span class="color_red">*</span>代表性论文、专著目录：（不超过6篇，用外文发表的，应填写相应的中文目录）
</div>
<table id="tblPaperinfo" cellpadding="0" class="table01" width="100%"
	border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
		<col style="width:5%">
		<col style="width:5%">
		<col style="width:8%">
		<col style="width:8%">
		<col style="width:8%">
		<col style="width:10%">
		<col style="width:9%">
		<col style="width:14%">
		<col style="width:8%">
		<col style="width:7%">
		<col style="width:6%">
		<col style="width:6%">
		<col style="width:6%">
		<thead>
			<tr style="border: 1px solid #B7D1E6">
				<th class="TblHead" align="center" >选择</th>
				<th class="TblHead" align="center" >序号</th>
				<th class="TblHead" align="center" >论文名称</th>
				<th class="TblHead" align="center" >刊名</th>
				<th class="TblHead" align="center" >作者</th>
				<th class="TblHead" align="center" >影响因子</th>
				<th class="TblHead" align="center" >年卷页码（××年××卷-××页）</th>
				<th class="TblHead" align="center" >发表时间</th>
				<th class="TblHead" align="center" >通讯作者</th>
				<th class="TblHead" align="center" >第一责任人</th>
				<th class="TblHead" align="center" >SCI他引次数</th>
				<th class="TblHead" align="center" >他引总次数</th>
				<th class="TblHead" align="center" >是否国内完成</th>
			</tr>
		</thead>
		<tbody id="tab">
		<tr style="display: none">
			<td align="center"> 
				<input type="radio" class="radiobutton" name="selPaperinfos">
			</td>
			<td align="center">
				<span name="paperinfos|paperinfo[0][0]@seq_no">[index]</span>
			</td>
			<td align="center">
				<input id="paperinfo_paper_name_[0][0]" style="width:80%;" maxlength="100" name="paperinfos|paperinfo[0][0]|paper_name" label="论文名称" value="" class="input_text  required " />
			</td>
			<td align="center">
				<input id="paperinfo_periodical_name_[0][0]" style="width:80%;" maxlength="100" name="paperinfos|paperinfo[0][0]|periodical_name" label="刊名" value="" class="input_text  required " />
			</td>
			<td align="center">
				<input id="paperinfo_writer_name_[0][0]" style="width:80%;" maxlength="100" name="paperinfos|paperinfo[0][0]|writer_name" label="作者" value="" class="input_text  required " />
			</td>
			<td align="center">
				<input id="paperinfo_imp_reason_[0][0]" style="width:80%;text-align:right" onfocus="InitInput.setNumber(this,7,2,0)"  maxlength="100" name="paperinfos|paperinfo[0][0]|imp_reason" label="影响因子"  value="" class="input_text  required " />
			</td>
			<td align="center">
				<input id="paperinfo_page_num_[0][0]" style="width:80%;" maxlength="100" name="paperinfos|paperinfo[0][0]|page_num" label="年卷页码"  value="" class="input_text  required " />
			</td>
			<td align="center">
				<input id="paperinfo_pub_date_[0][0]" style="width:60%;" name="paperinfos|paperinfo[0][0]|pub_date" label="发表时间" value="" style="width:60%" class="required date beforeToday" />
			</td>
			<td align="center">
				<input id="paperinfo_head_[0][0]" style="width:80%;" maxlength="100" name="paperinfos|paperinfo[0][0]|head" label="通讯作者"  value="" class="input_text  required " />
			</td>
			<td align="center">
				<input id="paperinfo_first_[0][0]" style="width:80%;" maxlength="100" name="paperinfos|paperinfo[0][0]|first" label="第一责任人"  value="" class="input_text  required " />
			</td>
			<td align="center">
				<input id="paperinfo_sci_times_[0][0]" style="width:80%;text-align: right;"  name="paperinfos|paperinfo[0][0]|sci_times" onfocus="InitInput.setNumber(this,7,0,0)" label="SCI他引次数"  value="" class="input_text  required " />
			</td>
			<td align="center">
				<input id="paperinfo_all_times_[0][0]" style="width:80%;text-align: right;" name="paperinfos|paperinfo[0][0]|all_times" onfocus="InitInput.setNumber(this,7,0,0)" label="他引总次数"  value="" class="input_text  required " />
			</td>
			<td align="center">
				<cpt:select id="paperinfo_is_mainland_[index]"  name="is_mainland" key="boolean" onChange="initControlValue(this.id);" style="width:90%"></cpt:select>
				<input type="hidden" name="paperinfos|paperinfo[0][0]|is_mainland_value"  class="input select required" value="" label="是否国内完成">
				<input type="hidden" name="paperinfos|paperinfo[0][0]|is_mainland_name" value="" />
			</td>
		</tr>
		<c:set value="0" var="index" scope="page" />
		<x:forEach select="$xmlData/data/paperinfos/paperinfo" var="paperinfo">
			<c:choose>
				<c:when test="${index<10}">
					<c:set value="0" var="flag" scope="page" />
				</c:when>
				<c:otherwise>
					<c:set value="" var="flag" scope="page" />
				</c:otherwise>
			</c:choose>
			<tr>
				<td align="center">
					<input type="radio" class="radiobutton" name="selPaperinfos">
				</td>
				<td align="center">
					<span name="paperinfos/paperinfo[${flag}${index}]@seq_no">
						<x:out select="$paperinfo/@seq_no" />
					</span>
				</td>
				<td align="center">
					<c:set var="paper_name" scope="page">
						<x:out select="$paperinfo/paper_name" />
					</c:set>
					 <input id="paperinfo_paper_name_[${flag}${index}]" value="${paper_name}" maxlength="100" label="论文名称" style="width:80%;" name="paperinfos/paperinfo[${flag}${index}]/paper_name" class="input_text  required"/>
				</td>
				<td align="center">
					<c:set var="periodical_name" scope="page">
						<x:out select="$paperinfo/periodical_name" />
					</c:set>
					 <input id="paperinfo_periodical_name_[${flag}${index}]" value="${periodical_name}" maxlength="100" label="刊名" style="width:80%;" name="paperinfos/paperinfo[${flag}${index}]/periodical_name" class="input_text  required"/>
				</td>
				<td align="center">
					<c:set var="writer_name" scope="page">
						<x:out select="$paperinfo/writer_name" />
					</c:set>
					 <input id="paperinfo_writer_name_[${flag}${index}]" value="${writer_name}" maxlength="100" label="作者" style="width:80%;" name="paperinfos/paperinfo[${flag}${index}]/writer_name" class="input_text  required"/>
				</td>
				<td align="center">
					<c:set var="imp_reason" scope="page">
						<x:out select="$paperinfo/imp_reason" />
					</c:set>
					 <input id="paperinfo_imp_reason_[${flag}${index}]"  value="${imp_reason}" maxlength="100" onfocus="InitInput.setNumber(this,7,2,0)"  label="影响因子" style="width:80%;text-align:center" name="paperinfos/paperinfo[${flag}${index}]/imp_reason" class="input_text  required"/>
				</td>
				<td align="center">
					<c:set var="page_num" scope="page">
						<x:out select="$paperinfo/page_num" />
					</c:set>
					 <input id="paperinfo_page_num_[${flag}${index}]"  value="${page_num}" maxlength="100" label="年卷页码" style="width:80%" name="paperinfos/paperinfo[${flag}${index}]/page_num" class="input_text  required"/>
				</td>
				<td align="center">
					<c:set var="pub_date" scope="page">
						<x:out select="$paperinfo/pub_date" />
					</c:set>
					 <input id="paperinfo_pub_date_[${flag}${index}]"  value="${pub_date}" label="发表时间" name="paperinfos/paperinfo[${flag}${index}]/pub_date" style="width:60%;text-align:center" class="required date beforeToday"/>
				</td>
				<td align="center">
					<c:set var="head" scope="page">
						<x:out select="$paperinfo/head" />
					</c:set>
					 <input id="paperinfo_head_[${flag}${index}]"  value="${head}" maxlength="100" label="通讯作者" style="width:80%;" name="paperinfos/paperinfo[${flag}${index}]/head" class="input_text  required"/>
				</td>
				<td align="center">
					<c:set var="first" scope="page">
						<x:out select="$paperinfo/first" />
					</c:set>
					 <input id="paperinfo_first_[${flag}${index}]"  value="${first}" maxlength="100" label="第一责任人" style="width:80%;" name="paperinfos/paperinfo[${flag}${index}]/first" class="input_text  required"/>
				</td>
				<td align="center">
					<c:set var="sci_times" scope="page">
						<x:out select="$paperinfo/sci_times" />
					</c:set>
					 <input id="paperinfo_sci_times_[${flag}${index}]" value="${sci_times}"  label="SCI他引次数" style="width:80%;text-align:center" onfocus="InitInput.setNumber(this,7,0,0)" name="paperinfos/paperinfo[${flag}${index}]/sci_times" class="input_text  required"/>
				</td>
				<td align="center">
					<c:set var="all_times" scope="page">
						<x:out select="$paperinfo/all_times" />
					</c:set>
					 <input id="paperinfo_all_times_[${flag}${index}]" value="${all_times}"  label="他引总次数" style="width:80%;text-align:center" onfocus="InitInput.setNumber(this,7,0,0)" name="paperinfos/paperinfo[${flag}${index}]/all_times" class="input_text  required"/>
				</td>
				<td align="center">
					<c:set var="mainland_value"><x:out select="$paperinfo/is_mainland_value" /></c:set>
			        <cpt:select id="paperinfo_is_mainland_${index}"   name="is_mainland"   key="boolean" style="width: 90%" value="${mainland_value}" onChange="initControlValue(this.id);"></cpt:select>
		        	<input type="hidden" name="paperinfos/paperinfo[${flag}${index}]/is_mainland_value"  class="required" value="<x:out select="$paperinfo/is_mainland_value" />" label="是否国内完成"/>
			        <input type="hidden" name="paperinfos/paperinfo[${flag}${index}]/is_mainland_name" value="<x:out select="$paperinfo/is_mainland_name" />"  label="是否国内完成"/>
				</td>
			</tr>
			<c:set value="${index+1}" var="index" scope="page"/>
		</x:forEach>
		<script type="text/javascript">
			showAllDateTag("tblPaperinfo");
		</script>
		
		</tbody>
</table>
<br>

<table width="98%" align="center">
	<tr>
		<td>
			<input class="button" name="cmdAddbefore" type=button value="添加" onclick="if(checkTabLimit('tblPaperinfo',6,'代表性论文、专著目录最多只能填写6条')){addNewRow('tblPaperinfo');showDateTag('tblPaperinfo');}try{top.resizeFrame();}catch(e){};">
			<input class="button" name="cmdMovePrev" type=button value="上移" onclick="movePrev('tblPaperinfo','selPaperinfos')">
		    <input class="button" name="cmdMoveNext" type=button value="下移" onclick="moveNext('tblPaperinfo','selPaperinfos')">
		    <input class="button" name="cmddel" type=button value="删除" onclick="deleteSelectedRow('tblPaperinfo','代表性论文、专著目录')">
		</td>
	</tr>
</table>
<br>
<!--上述代表性论文、专著被他人引用、评价的情况目录  -->
<div class="t_bar">
	<span class="color_red">*</span>上述代表性论文、专著被他人引用、评价的情况目录：（不超过6篇，用外文发表的，应填写相应的中文目录）
</div>
<table id="tblPaperinfo1" cellpadding="0" class="table01" width="100%"
	border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
		<col style="width:5%"/>
		<col style="width:5%"/>
		<col style="width:10%"/>
		<col style="width:10%"/>
		<col style="width:10%"/>
		<col style="width:10%"/>
		<col style="width:10%"/>
		<col style="width:10%"/>
		<col style="width:15%"/>
		<col style="width:25%"/>
		<thead>
			<tr style="border: 1px solid #B7D1E6">
				<th class="TblHead" align="center" >选择</th>
				<th class="TblHead" align="center" >序号</th>
				<th class="TblHead" align="center" >被引论文、专著名称</th>
				<th class="TblHead" align="center" >被引论文、专著刊名</th>
				<th class="TblHead" align="center" >被引论文、专著作者</th>
				<th class="TblHead" align="center" >引文名称</th>
				<th class="TblHead" align="center" >引文刊名</th>
				<th class="TblHead" align="center" >引文作者</th>
				<th class="TblHead" align="center" >刊名/影响因子<br/>（引文）</th>
				<th class="TblHead" align="center" >引文发表时间</th>
			</tr>
		</thead>
		<tbody id="tab">
		<tr style="display: none">
			<td align="center"> 
				<input type="radio" class="radiobutton" name="selPaperinfos">
			</td>
			<td align="center">
				<span name="paperinfos1|paperinfo[0][0]@seq_no">[index]</span>
			</td>
			<td align="center">
				<input id="paperinfo_refed_name_[0][0]" style="width:80%;" name="paperinfos1|paperinfo[0][0]|refed_name" maxlength="100" label="被引论文、专著名称" value="" class="input_text  required " />
			</td>
			<td align="center">
				<input id="paperinfo_refed_periodical_[0][0]" style="width:80%;" name="paperinfos1|paperinfo[0][0]|refed_periodical" maxlength="100" label="被引论文、专著刊名" value="" class="input_text  required " />
			</td>
			<td align="center">
				<input id="paperinfo_refed_writer_[0][0]" style="width:80%;" name="paperinfos1|paperinfo[0][0]|refed_writer" maxlength="100" label="被引论文、专著作者" value="" class="input_text  required " />
			</td>
			<td align="center">
				<input id="paperinfo_ref_name_[0][0]" style="width:80%;" name="paperinfos1|paperinfo[0][0]|ref_name" maxlength="100" label="引文名称"  value="" class="input_text  required " />
			</td>
			<td align="center">
				<input id="paperinfo_ref_periodical_[0][0]" style="width:80%;" name="paperinfos1|paperinfo[0][0]|ref_periodical" maxlength="100" label="引文刊名"  value="" class="input_text  required " />
			</td>
			<td align="center">
				<input id="paperinfo_ref_writer_[0][0]" style="width:80%;" name="paperinfos1|paperinfo[0][0]|ref_writer" maxlength="100" label="引文作者"  value="" class="input_text  required " />
			</td>
			<td align="center">
				<input id="paperinfo_imp_fac_[0][0]" style="width:80%;" name="paperinfos1|paperinfo[0][0]|imp_fac" maxlength="100" label="刊名/影响因子（引文）"  value="" class="input_text  required " />
			</td>
			<td align="center">
				<input id="paperinfo_refpub_date_[0][0]" style="width:60%;" name="paperinfos1|paperinfo[0][0]|refpub_date" label="引文发表时间" value="" class="required date beforeToday" />
			</td>
		</tr>
		<c:set value="0" var="index" scope="page" />
		<x:forEach select="$xmlData/data/paperinfos1/paperinfo" var="paperinfo">
			<c:choose>
				<c:when test="${index<10}">
					<c:set value="0" var="flag" scope="page" />
				</c:when>
				<c:otherwise>
					<c:set value="" var="flag" scope="page" />
				</c:otherwise>
			</c:choose>
			<tr>
				<td align="center">
					<input type="radio" class="radiobutton" name="selPaperinfos">
				</td>
				<td align="center">
					<span name="paperinfos1/paperinfo[${flag}${index}]@seq_no">
						<x:out select="$paperinfo/@seq_no" />
					</span>
				</td>
				<td align="center">
					<c:set var="refed_name" scope="page">
						<x:out select="$paperinfo/refed_name" />
					</c:set>
					 <input id="paperinfo_refed_name_[${flag}${index}]" value="${refed_name}" maxlength="100" label="被引论文、专著名称" style="width:80%;" name="paperinfos1/paperinfo[${flag}${index}]/refed_name" class="input_text  required"/>
				</td>
				<td align="center">
					<c:set var="refed_periodical" scope="page">
						<x:out select="$paperinfo/refed_periodical" />
					</c:set>
					 <input id="paperinfo_refed_periodical_[${flag}${index}]" value="${refed_periodical}" maxlength="100" label="被引论文、专著刊名" style="width:80%;" name="paperinfos1/paperinfo[${flag}${index}]/refed_periodical" class="input_text  required"/>
				</td>
				<td align="center">
					<c:set var="refed_writer" scope="page">
						<x:out select="$paperinfo/refed_writer" />
					</c:set>
					 <input id="paperinfo_refed_writer_[${flag}${index}]" value="${refed_writer}" maxlength="100" label="被引论文、专著作者" style="width:80%;" name="paperinfos1/paperinfo[${flag}${index}]/refed_writer" class="input_text  required"/>
				</td>
				<td align="center">
					<c:set var="ref_name" scope="page">
						<x:out select="$paperinfo/ref_name" />
					</c:set>
					 <input id="paperinfo_ref_name_[${flag}${index}]"  value="${ref_name}" maxlength="100" label="引文名称" style="width:80%;" name="paperinfos1/paperinfo[${flag}${index}]/ref_name" class="input_text  required"/>
				</td>
				<td align="center">
					<c:set var="ref_periodical" scope="page">
						<x:out select="$paperinfo/ref_periodical" />
					</c:set>
					 <input id="paperinfo_ref_periodical_[${flag}${index}]"  value="${ref_periodical}" maxlength="100" label="引文刊名" style="width:80%;" name="paperinfos1/paperinfo[${flag}${index}]/ref_periodical" class="input_text  required"/>
				</td>
				<td align="center">
					<c:set var="ref_writer" scope="page">
						<x:out select="$paperinfo/ref_writer" />
					</c:set>
					 <input id="paperinfo_ref_writer_[${flag}${index}]"  value="${ref_writer}" maxlength="100" label="引文作者" style="width:80%;" name="paperinfos1/paperinfo[${flag}${index}]/ref_writer" class="input_text  required"/>
				</td>
				<td align="center">
					<c:set var="imp_fac" scope="page">
						<x:out select="$paperinfo/imp_fac" />
					</c:set>
					 <input id="paperinfo_imp_fac_[${flag}${index}]"  value="${imp_fac}" maxlength="100" label="刊名/影响因子（引文）" style="width:80%" name="paperinfos1/paperinfo[${flag}${index}]/imp_fac" class="input_text  required"/>
				</td>
				<td align="center">
					<c:set var="refpub_date" scope="page">
						<x:out select="$paperinfo/refpub_date" />
					</c:set>
					 <input id="paperinfo_refpub_date_[${flag}${index}]"  value="${refpub_date}"  label="引文发表时间" name="paperinfos1/paperinfo[${flag}${index}]/refpub_date" style="width:60%;text-align:center" class="required date beforeToday"/>
				</td>
			</tr>
			<c:set value="${index+1}" var="index" scope="page"/>
		</x:forEach>
		<script type="text/javascript">
			showAllDateTag("tblPaperinfo1");
		</script>
		
		</tbody>
</table>
<br>

<table width="98%" align="center">
	<tr>
		<td>
			<input class="button" name="cmdAddbefore" type=button value="添加" onclick="if(checkTabLimit('tblPaperinfo1',6,'上述代表性论文、专著被他人引用、评价的情况目录最多只能填写6条')){addNewRow('tblPaperinfo1');showDateTag('tblPaperinfo1');}try{top.resizeFrame();}catch(e){};">
			<input class="button" name="cmdMovePrev" type=button value="上移" onclick="movePrev('tblPaperinfo1','selPaperinfos')">
		    <input class="button" name="cmdMoveNext" type=button value="下移" onclick="moveNext('tblPaperinfo1','selPaperinfos')">
		    <input class="button" name="cmddel" type=button value="删除" onclick="deleteSelectedRow('tblPaperinfo1','上述代表性论文、专著被他人引用、评价的情况目录')">
		</td>
	</tr>
</table>
<script type="text/javascript">
/**
 * 各类公用控件和radio框储存值到隐藏域中(除了tree和智能下拉框外)
 */
function initControlValue(objId){
	
		var name="";
		var obj=$("#"+objId);
	    if(obj.is("select")){
	    	name=obj.attr("name");
	    	obj.parent().children("input[name$='"+name+"_value'][type='hidden']").val($("#"+objId).find("option:selected").val());
	    	$("#"+objId).parent().children("input[name$='"+name+"_name']").val($("#"+objId).find("option:selected").text());
	    }
	   
	    else if(obj.is(":radio")){
	    	name=obj.attr("name");
	    	if(obj.is(":checked")){//如果被选中
	    		//alert($("#"+objId).val());		
	    		obj.parents("table").find("input[name$='"+name+"_value'][type='hidden']").val($("#"+objId).val());
	    		$("#"+objId).parent().children("input[name$='"+name+"_name']").val($("#"+objId).next().text());
	    	}
	    	else{
	    		
	    		obj.parents("table").find("input[name$='"+name+"_value'][type='hidden']").val("");
	    	}
	    }else if(obj.is(":checkbox")){
	    	name=obj.attr("name");
	    	if(obj.is(":checked"))//如果被选中
	    		obj.parent().find("input[name$='"+name+"_value'][type='hidden']").val($("#"+objId).val());
	    	else
	    		obj.parent().find("input[name$='"+name+"_value'][type='hidden']").val("");
	    }else{
	    	name=obj.attr("id");
	    	obj.parents("td").find("input[name$='"+name+"_name'][type='hidden']").val(obj.val());
	    	obj.parents("td").find("input[name$='"+name+"_code'][type='hidden']").val($("#"+objId+"_hideId").val());
	    }  	
}
</script>

